package com.markovich.projects.netcoverage.services;

import java.util.ArrayList;
import java.util.HashMap;

import android.graphics.Color;

import com.google.android.gms.maps.model.LatLng;

public class TrackingService {

	private ArrayList<TrackingPoint> trackingPoints;

	HashMap<Integer, Integer> colorMapping = new HashMap<Integer, Integer>();

	public TrackingService() {
		if (this.colorMapping.size() == 0) {
			this.fillColorMap();
		}
	}

	public void addPoint(LatLng coord) {
		
	}
	
	public int getColor(int signalStrength){
		return this.colorMapping.get(signalStrength);
	}

	public void fillColorMap() {

		for (int i = 0; i < 31; i++) {
			
			this.colorMapping.put(i, Color.rgb(255 - (i * 8), 255, 0));

		}

	}

}
